; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply 
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there. 

!define APP   "jtifedit"
!define TITLE "J TIFF Editor"

!define VER "1.1.0"

;--------------------------------

; The name of the installer
Name "${TITLE} ${VER}"

; The file to write
OutFile "Setup_${APP}_portable.exe"

; The default installation directory
InstallDir "$APPDATA\${APP}"

; Request application privileges for Windows Vista
RequestExecutionLevel user

AutoCloseWindow true

!define DOTNET_VERSION "2.0"

!include "DotNET.nsh"
!include LogicLib.nsh

;--------------------------------

; Pages

Page license
Page directory
Page instfiles

LicenseData newbsd.rtf

;--------------------------------

; The stuff to install
Section "" ;No components page, name is not important

  ; Set output path to the installation directory.
  SetOutPath $INSTDIR

  !insertmacro CheckDotNET ${DOTNET_VERSION}

  ; Put file there
  File "bin\release\*.exe"
  File "bin\release\*.pdb"

  Exec "$INSTDIR\jtifedit.exe"

SectionEnd ; end the section
